package com.ruiyi.adrobot.mongo.company;

import com.ruiyi.adrobot.domain.company.Company;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Created by tao.zeng on 2017/8/2.
 */
public interface CompanyRepository extends MongoRepository<Company, String>, CompanyOperations {
    Company findByIdAndUserName(String userName, String pwd);

    Company findByUserName(String userName);

    Company findByIdAndAccessToken(String appId, String accessToken);
}
